package com.itheima.utils;

import lombok.Data;

/**
 * @author tongchen
 * @create 2022-12-18 10:44
 */
@Data
public class Result {
    private boolean flag;
    private Object object;
    private String msg;

    public Result(boolean flag, Object object) {
        this.flag = flag;
        this.object = object;
    }

    public Result(boolean flag) {
        this.flag = flag;
    }

    public Result(String msg) {
        flag=false;
        this.msg = msg;
    }
}
